package com.csc.data.util;

import cn.hutool.core.util.RandomUtil;

/**
 * @author liuchuang
 * @version 1.0
 * @date 2023/5/23 15:56
 * @modify
 */
public class RandomUtils {

    public static String getRandomIp(){
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 4; i++) {
            int randomInt = RandomUtil.randomInt(255);
            if (i!=3){
                sb.append(randomInt).append(".");
            }else {
                sb.append(randomInt);
            }

        }
        return sb.toString();
    }


}
